/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.system.application;

import java.util.List;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.foreveross.bsl.system.application.vo.RouterClassDatabaseVO;


/**
 * @description
 *
 * @author rening
 * @version v1.0
 *
 * @2013-6-7
 *
 */
@Path(value = "/routerClassDatabases")
public interface RouterClassDatabaseApplication {

	@POST
	@Path("/")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public RouterClassDatabaseVO saveEntity(RouterClassDatabaseVO entity);

	@PUT
	@Path("/")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public RouterClassDatabaseVO updateEntity(RouterClassDatabaseVO entity);

	@DELETE
	@Path("/")
	public void deleteEntity(RouterClassDatabaseVO entity);

	@GET
	@Path("/{id}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public RouterClassDatabaseVO getEntity(String id);

	@GET
	@Path("/")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public List<RouterClassDatabaseVO> findAll();

	@POST
	@Path("/pages")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public Page<RouterClassDatabaseVO> findByPageable(Pageable pageable);
	
}
